<?php
/*****
 logout.php:
 This file logs a user out.

 author: jez hancock
 support: http://forums.munk.nu/forumdisplay.php?fid=1
 date:		$Date: 2003/03/21 01:15:05 $
 version:	$Id: logout.php,v 1.3 2003/03/21 01:15:05 root Exp root $
 *****/
/*
 Logout script:
 This is a very simple script that does the following:
 Checks the user is already logged in.
 Destroys/unsets all session data.
 Redirects the user to their login page.
 */
include_once("config.php");

// Check user logged in already:
checkLoggedIn("yes");

// Log user out:
flushMemberSession();

// Redirect:
header("Location: login.php");
?>